import { ElLoading } from 'element-plus'

export default function () {
    const loading = (title: string) => {
        const loadingInstance = ElLoading.service({ text: title })
        return loadingInstance
    }

    return {
        loading
    }
}
